<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>jquery todolist</title>
</head>
<body>
	<input type="text" name="todoTxt" id="todoTxt">
	<div id="list"></div>
</body>
<script src="./jquery.min.js"></script>
<script>
	$(function() {

		$("#todoTxt").on("keydown", function(event) {
			if(event.keyCode === 13) {
				alert("按下回车键");
			}
		})
	})
</script>
</html>